/*
 * CLEAR.c
 *
 *  Created on: Jan 20, 2014
 *      Author: adijoshi
 */
//INCLUDES
#include "includes.h"


/*
 * Function: func_CLR
 *
 * Inputs:	 Mnemonic, Address_of_destination
 * Outputs:  (None)
 * Condition  Codes:
 * 		Z:  set
 * 		N:  cleared
 * 		C:  cleared
 * 		V:  cleared
 */

void func_CLR(int mnemonic, unsigned short address_destination)
{
	write_in_memory(address_destination,0,DATA);

	update_N_flag(CLR,0);
	update_Z_flag(0);
	update_V_flag(CLR,0,0,0);
	update_C_flag(CLR,0,0,0,0);
}
